package com.fr.chart.axis;

import com.fr.base.core.json.JSONException;
import com.fr.base.core.json.JSONObject;
import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import com.fr.chart.Title;
import java.awt.Color;

public class RadarAxis extends Axis
{
  private static final long serialVersionUID = 1L;
  public static final String XML_TAG = "RadarAxis";

  public RadarAxis()
  {
    setTickMarkType(0);
    setMainGridStyle(1);
    setMainGridColor(new Color(237, 237, 237));
  }

  public Title getTitle()
  {
    return null;
  }

  public void setTitle(Title paramTitle)
  {
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
    if (paramXMLableReader.isChildNode())
    {
      String str1;
      String str2 = paramXMLableReader.getTagName();
      if (str2.equals("MinValue"))
        if ((str1 = paramXMLableReader.getAttr("minValue")) != null)
        {
          setMinValue(Double.valueOf(str1).doubleValue());
          setCustomMinValue(true);
        }
      if (str2.equals("MaxValue"))
        if ((str1 = paramXMLableReader.getAttr("maxValue")) != null)
        {
          setMaxValue(Double.valueOf(str1).doubleValue());
          setCustomMaxValue(true);
        }
    }
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("RadarAxis").attr("class", getClass().getName());
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.end();
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof RadarAxis))
      return false;
    RadarAxis localRadarAxis = (RadarAxis)paramObject;
    return (super.equals(localRadarAxis));
  }

  public JSONObject toJSONObject()
    throws JSONException
  {
    JSONObject localJSONObject = super.toJSONObject();
    return localJSONObject;
  }
}